package aop1;

import aop.IHello;

/**
 * @author <a href="mailto:ifonlymaster@163.com">ifonly</a>
 * @version 1.0 2015-12-10 09:04
 * @since JDK 1.6
 */
public class HelloProxy implements IHello {
    private IHello target;

    public HelloProxy(IHello target) {
        this.target = target;
    }

    @Override
    public void sayHello(String name) {
        System.out.println("before....");
        this.target.sayHello(name);
        System.out.println("after....");
    }

}
